GCCJS=gccjs
tests=\
  function-empty.bin \
  function-correct-args.bin \
  function-excess-args.bin \
  function-missing-args.bin \
  function-sum.bin \
  loop-empty-resolve.bin \
  loop-empty.bin \
  loop-sum.bin \

#function-closure.bin 
.PHONY: test
test: $(tests)

.SUFFIXES: .bin .js
%.bin:%.js
	$(GCCJS) $< -o $@
	./$@

.PHONY: clean
clean:
	-$(RM) -rf ./*.bin

